package com.sanmina.tms;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sanmina.tms.dao.PersonnelDao;
import com.sanmina.tms.dao.impl.PersonnelDaoImpl;

public class Main {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beans-annotation.xml");
		PersonnelDao per = (PersonnelDao) context.getBean(PersonnelDaoImpl.class);

		System.out.println(per.getById(1));
	}
}
